package io;

import java.io.Serializable;

public class User implements Serializable {
	/**
	 * 版本号控制
	 */
	private static final long serialVersionUID = -8437992402669345254L;
	public User(String name, int age, Gender gender) {
		super();
		Name = name;
		Age = age;
		this.gender = gender;
	}

	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public int getAge() {
		return Age;
	}
	public void setAge(int age) {
		Age = age;
	}
	//transient关键字“瞬时”，可以指定属性不序列化
	public transient String Name;
	public int Age;
	public  Gender gender;
	public Gender getGender() {
		return gender;
	}
	public void setGender(Gender gender) {
		this.gender = gender;
	}
	public static enum Gender{
		Male,FEMALE
	}
}

